//
//  RadioListCell.m
//  Leisure
//
//  Created by xalo on 16/7/2.
//  Copyright © 2016年 朱旭东. All rights reserved.
//

#import "RadioListCell.h"

@interface RadioListCell ()
@property (weak, nonatomic) IBOutlet UIImageView *coverimg;
@property (weak, nonatomic) IBOutlet UILabel *count;
@property (weak, nonatomic) IBOutlet UILabel *title;

@end

@implementation RadioListCell


- (void)setCellWithModel:(RadioListModel *)model{
    
    [self.coverimg  sd_setImageWithURL:[NSURL  URLWithString:model.coverimg] placeholderImage:[UIImage imageNamed:@"6.jpg"]];
    self.count.text = [NSString stringWithFormat:@"%@",model.musicVisit.description];
    self.title.text = model.title;
}


- (IBAction)clickButton:(id)sender {
    if (self.playBlock) {
        self.playBlock();
    }
    
}



- (void)awakeFromNib {
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
